package tech.yunland.shop.domain.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.moyuer.bsf.domain.model.AbstractEntity;
import com.moyuer.bsf.domain.model.Organ;
import com.moyuer.bsf.domain.model.User;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by v on 17-7-3.
 */
@Entity
@Table(name = "user_dormitories")
public class UserDormitories extends AbstractEntity {

    @JSONField(serialize = false)
    @ManyToOne
    private User students;

    @JSONField(serialize = false)
    @ManyToOne
    private Dormitories dormitories;

    public User getStudents() {
        return students;
    }

    public void setStudents(User students) {
        this.students = students;
    }

    public Dormitories getDormitories() {
        return dormitories;
    }

    public void setDormitories(Dormitories dormitories) {
        this.dormitories = dormitories;
    }
}
